<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>box-sizing属性</title>
		<style type="text/css">
			.box1
			{
				width: 300px;
				height: 100px;
				background: gray;
				border: 10px solid blue;
				box-sizing: content-box;
			}
			.box2
			{
				width: 300px;
				height: 100px;
				background: gray;
				border: 10px solid blue;
				box-sizing: border-box;
			}
		</style>
	</head>
	<body>
		<div class="box1">content-box属性</div>
		<div class="box2">border-box属性</div>
	</body>
</html>